@import url("../../index.less");
.merge_table_container{
  p{
    margin: 0;
  }
  :global{
    // table{
    //   *{
    //     box-sizing: content-box;
    //   }
    // }
    .ant-table-container{
      
    
      .ant-table-thead{
        
        > tr{
          
          > th{
            border-top:1px solid #CED7E8;
            border-bottom:1px solid #CED7E8;
            border-right:1px solid #CED7E8;
            background-color: #F5F6F9;
            .font-bold();
            font-size: 13px;
            color: #35425E;
            height: 24px;
            padding: 3px 8px;
            position: relative;
            >div{
              position: absolute;
              // top: -.5px;
              // left: -.5px;
              // height: 18px;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              display: flex;
              align-items: center;
              justify-content: center;
            }
            &.hovered{
              >div{
                background: #E0E4EC;

              }
              
              &::after{
                width: 100%;
                height: 2px;
                background: #363C4E;
                content: '';
                display: block;
                position: absolute;
                left: 0;
                bottom: -2px;
                z-index: 2;
              }  
            }
            &:nth-child(1){
              background: #E0E4EC;
              border-left: 1px solid #CED7E8;
              
            }
            &:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before{
              display: none;
            }
          }
        }
      }
      .ant-table-tbody {
        > tr{
         
          &:nth-child(2n + 1){
            background:#fff;
          }
          height: 24px;
          
          > td{
            
            padding:0;
            height: 24px;
            font-size: 13px;
            border-bottom: 1px solid #CED7E8;
            border-right: 1px solid #CED7E8;
            position: relative;
            > div.checked{
              .percent_hover_container{
                display:inline-block ;
              }
              >div{
                border: 2px solid #363C4E;
              }
              >p{
                &:nth-child(3){
                  font-weight: 600;
                }
                &:nth-child(5){
                  display: inline-block;
                }
              }
            }
          } 
          &.merge_row{
            &:nth-child(1){
              >td{
                border-top: none;
              }
            }
            >td{
              &:nth-child(1){
                background: #E0E4EC !important;
                padding: 0;
                border-left: 1px solid #CED7E8;
              }
              border-top: 1px solid #CED7E8;
            }
          }
          
          
        }
        tr.ant-table-row:hover > td, .ant-table-tbody > tr > td.ant-table-cell-row-hover{
          background: none;
          &.hover_name{
            background: #F5F6F9;
            
          }
          &.hovered{
            background: #E0E4EC;
          }
        }
      }
      table > thead > tr{
        &:first-child th{
          &:first-child{
            border-top-left-radius:unset;
          }
          &:last-child{
            border-top-right-radius:unset;
          }
        }

      }
      
    }
    .hover_name{
      position: relative;
      height: 100%;
      color: #35425E;
      .font-bold();
      // background: #E0E4EC;
      // display: flex;
      // align-items: center;
      &.hovered{
        background: #E0E4EC;
        &::after{
          content: '';
          width: 2px;
          background: #363C4E;
          display: block;
          position: absolute;
          right: -1px;
          top: -0.5px;
          bottom: -1px;
        }
      }
      background: #F5F6F9;
      &:hover{
        background: #F5F6F9;
      }

      

    }
    // .ant-table-container .ant-table-tbody > tr:nth-child(2n + 1){
    //   background: inherit;
    // }
  }
}
.bolder_text{
  font-weight: 600;
}
.percent_container{
  // position: relative;
  // border: 1px solid red;
  // width: calc(100% + 3px);
  // height: calc(100% + 2px);
  // left: -1.5px;
  // position: relative;
  .border_container{
    width: calc(100% + 2px);
    height:calc(100% + 2px);
    position: relative;
    left: -0.5px;
    top: -0.5px;
    z-index: 2;
    
  }
  width: 100%;
  height: 100%;
  // left: -2px;
  
  &:hover{
    .info_card{
      display: flex;
    }
    .border_container{
      border: 2px solid #363C4E;
    }
    .percent_hover_container{
      display:inline-block ;
    }
    .percent_text{
      font-weight: 600;
    }
  }
  .percent_hover_container{
    background: rgba(54, 60, 78, 0.9);
    border: 1px solid #363C4E;
    font-weight: 600;
    font-size: 12px;
    zoom: .7;
    color: #FFFFFF;
    // display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 12px;
    z-index: 3;
    padding: 0 2px;
    display: none;
  }
  // top: -1px;
  .percent_bar{
    height: 10px;
    opacity: 0.3;
    background: #40A6DF;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    left: 0px;
    min-width: 1px;
  }
  .percent_text{
    text-shadow: 0 0 2px rgba(255,255,255,0.80);
    // text-shadow: 2px 2px red;
    cursor: default;
    // font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 13px;
    color: #35425E;
    position: absolute;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }
  
  .info_card{
    display: none;
    // display: flex;
    width: 107px;
    height: 13px;
    background: rgba(54,60,78,0.90);
    border: 1px solid #363C4E;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    // display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 70%;
    left: 50%;
    margin-left: -54px;
    z-index: 3;
    >span{
      .font-size-zoom(10);
        display: inline-block;
        line-height: 1;
      }
  }
  
}
.not_first_container{
  &:hover{
    .info_card{
      display: none;
    }
  }
}
.chart_head_container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 0  16px;
  .btn_container{
    display: flex;
    align-items: center;
    .download{
      background: #F5F6F8;
      border-radius: 2px;
      cursor: pointer;
      &::after{
        display: block;
        content: '';
        width: 15px;
        height: 15px;
        background: url("../../assets/icons/icon-chart-upload-img.svg") no-repeat;
        background-size: 15px 15px;
        margin: 7px 6px 6px 7px;
        opacity: .8;
      }
      
      &:hover{
        &::after{
          opacity: .9;
        }
        

      }
    }
    .download_disabled{
      cursor:not-allowed;
      &::after{
        opacity: .3;
      }
      &:hover{
        &::after{
          opacity: .3;
        }
        

      }
    }
    
  }
  .divider{
    width: 1px;
    height: 12px;
    background: #E5E5E5;
    margin-left: 12px;
    margin-right: 12px;
  }
}
.chart_head{
  font-weight: 600;
  font-size: 13px;
  color: #35425E;
  line-height: 28px;
  
}
.customDatePicker{
  :global{
    .ant-picker{
      // width: 110px;
      // padding-left: 7px;
      // padding-right: 7px;
    }
  }
}
.merge_first_td{
  .font-bold();
  font-size: 13px;
  color: #35425E;
  line-height: 1.1;
}
.bottom_table{
  :global{
    .ant-table-container {
      // *{
      //   transition: none;
      // }
      .ant-table-thead > tr > th{
        background: #E0E4EC;
        .font-bold();
        font-size: 13px;
        color: #35425E;
        padding-right: 10px;
        &.ant-table-cell.ant-table-cell-scrollbar{
          padding: 0;
        }
        

      }
      .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before{
          display: none;
      }
      .ant-table-tbody{
        
        > tr{
          &:hover{
            background: #e5f0ff;
            td{
              background: #e5f0ff;
              &:nth-child(1){
                background: #e5f0ff;
                
              }
            }
          }
          > td{
            transition: none;
            padding-right: 10px;
            &:last-child{
              border-right: 1px solid #CED7E8 !important;
  
            }
            &:nth-child(1){
              background: #F5F6F9;
              .font-bold();
              font-size: 13px;
              color: #35425E;
              min-width: 100px;
            }
        } 
        }
      } 
      
      // .ant-table-body{
      //   margin-bottom: 6px;
      //   border-bottom: 1px solid #CED7E8 !important;
      // }
    }
  }
}

.ellipsis5 {
  min-width: 50px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.dropdown_container{
  display: flex;
  align-items: center;
  
  .text_container{
    cursor: pointer;
    >p{
      font-weight: 600;
      font-size: 13px;
      color: #35425E;
      line-height: 28px;
      margin: 0;
      &:nth-child(2){
        white-space: pre-wrap;
      }
      
    }
    display: flex;
    align-items: center;
  }
  :global{
    .ant-dropdown-trigger{
      >span{
        font-weight: 600;
        font-size: 13px;
        color: #35425E;
        line-height: 28px;
        display: inline-block;
        vertical-align: middle;
      }
      >img{
        width: 16px;
        height: 16px;
        vertical-align: middle;

      }
    }
  }
}
.dropMenu {
  :global {
    .ant-dropdown-menu-item,
    .ant-dropdown-menu-submenu-title {
      color: #35425e;
      font-size: 13px;
    }

    .ant-dropdown-menu-item-selected {
      background-color: #e5f0ff;
      font-weight: bold;
    }
  }
}